bin=httpserver
cc=g++
LD_FLAGS=-std=c++11 -lpthread 
curr=$(shell pwd)
src=main.cc

.PHONY:ALL
ALL:$(bin) CGI

$(bin):$(src)
	$(cc) -o $@ $^ $(LD_FLAGS)

CGI:
	cd $(curr)/cgi;
		make;
		cd -;

.PHONY:clean
clean:
	rm -f $(bin)
	rm -rf output
	cd $(curr)/cgi;
		make clean;
		cd -

.PHONY:output 
output: